// 地址模块的接口
import request from '../utils/request'

// 获取默认地址的接口
export const getAddressApi = function () {
  return request("/Address/addresslists", { uid: "956519" }, "post")
}
// 新增地址接口
export const addAddressApi = function (data) {
  return request("/Address/editaddress", data, "post")
}
// 删除地址接口
export const delAddressApi = function (id) {
  return request("/Address/deladdress", {
    uid: "956519",
    ids_str: id
  }, "post")
}
// 设置默认地址的接口
export const setDefaultApi = function (id) {
  return request("/Address/setdefault", {
    uid: "956519",
    raid: id
  }, "post")
}

